package com.infra.micro.oss.domain.db.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

@ApiModel(value = "BizInfoPO", description = "biz_info表实体对象")
public class BizInfoPO implements Serializable {
    /**
     * BIGINT(19) 必填
     * 业务文件唯一标识ID
     */
    @ApiModelProperty(name = "bizId", value = "业务文件唯一标识ID")
    private Long bizId;

    /**
     * VARCHAR(36)
     * 应用id
     */
    @ApiModelProperty(name = "appId", value = "应用id")
    private String appId;

    /**
     * VARCHAR(36)
     * 用户id
     */
    @ApiModelProperty(name = "userId", value = "用户id")
    private String userId;

    /**
     * BIGINT(19) 必填
     * 文件id
     */
    @ApiModelProperty(name = "fileId", value = "文件id")
    private Long fileId;

    /**
     * VARCHAR(255) 必填
     * 文件名称
     */
    @ApiModelProperty(name = "fileName", value = "文件名称")
    private String fileName;

    /**
     * BIT(1) 默认值[b'0']
     * 删除标识： 1 删除 0 保留
     */
    @ApiModelProperty(name = "isDelete", value = "删除标识： 1 删除 0 保留")
    private Boolean isDelete;

    /**
     * TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP] 必填
     * 创建时间
     */
    @ApiModelProperty(name = "createTime", value = "创建时间")
    private Date createTime;

    /**
     * TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP] 必填
     * 更新时间
     */
    @ApiModelProperty(name = "updateTime", value = "更新时间")
    private Date updateTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table biz_info
     *
     * @mbg.generated
     */
    private static final long serialVersionUID = 1L;

    /**
     * BIGINT(19) 必填
     * 获得 业务文件唯一标识ID
     */
    public Long getBizId() {
        return bizId;
    }

    /**
     * BIGINT(19) 必填
     * 设置 业务文件唯一标识ID
     */
    public void setBizId(Long bizId) {
        this.bizId = bizId;
    }

    /**
     * VARCHAR(36)
     * 获得 应用id
     */
    public String getAppId() {
        return appId;
    }

    /**
     * VARCHAR(36)
     * 设置 应用id
     */
    public void setAppId(String appId) {
        this.appId = appId == null ? null : appId.trim();
    }

    /**
     * VARCHAR(36)
     * 获得 用户id
     */
    public String getUserId() {
        return userId;
    }

    /**
     * VARCHAR(36)
     * 设置 用户id
     */
    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    /**
     * BIGINT(19) 必填
     * 获得 文件id
     */
    public Long getFileId() {
        return fileId;
    }

    /**
     * BIGINT(19) 必填
     * 设置 文件id
     */
    public void setFileId(Long fileId) {
        this.fileId = fileId;
    }

    /**
     * VARCHAR(255) 必填
     * 获得 文件名称
     */
    public String getFileName() {
        return fileName;
    }

    /**
     * VARCHAR(255) 必填
     * 设置 文件名称
     */
    public void setFileName(String fileName) {
        this.fileName = fileName == null ? null : fileName.trim();
    }

    /**
     * BIT(1) 默认值[b'0']
     * 获得 删除标识： 1 删除 0 保留
     */
    public Boolean getIsDelete() {
        return isDelete;
    }

    /**
     * BIT(1) 默认值[b'0']
     * 设置 删除标识： 1 删除 0 保留
     */
    public void setIsDelete(Boolean isDelete) {
        this.isDelete = isDelete;
    }

    /**
     * TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP] 必填
     * 获得 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP] 必填
     * 设置 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP] 必填
     * 获得 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP] 必填
     * 设置 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_info
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", bizId=").append(bizId);
        sb.append(", appId=").append(appId);
        sb.append(", userId=").append(userId);
        sb.append(", fileId=").append(fileId);
        sb.append(", fileName=").append(fileName);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_info
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BizInfoPO other = (BizInfoPO) that;
        return (this.getBizId() == null ? other.getBizId() == null : this.getBizId().equals(other.getBizId()))
            && (this.getAppId() == null ? other.getAppId() == null : this.getAppId().equals(other.getAppId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getFileId() == null ? other.getFileId() == null : this.getFileId().equals(other.getFileId()))
            && (this.getFileName() == null ? other.getFileName() == null : this.getFileName().equals(other.getFileName()))
            && (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_info
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBizId() == null) ? 0 : getBizId().hashCode());
        result = prime * result + ((getAppId() == null) ? 0 : getAppId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getFileId() == null) ? 0 : getFileId().hashCode());
        result = prime * result + ((getFileName() == null) ? 0 : getFileName().hashCode());
        result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }
}